package com.woniu.adminservice.controller;

import com.woniu.adminservice.entity.UsersRole;
import com.woniu.adminservice.service.UsersRoleService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("usersRole")
public class UsersRoleController {
    @Resource
    private UsersRoleService usersRoleService;

    @GetMapping("selectOne")
    public UsersRole selectOne(Integer id) {
        return usersRoleService.queryById(id);
    }

}